<?php // no direct access
defined('_JEXEC') or die('Restricted access');
$cparams =& JComponentHelper::getParams('com_media');
$db = &JFactory::getDBO();
$query = "SELECT * FROM #__content AS content WHERE catid=3";
$db->setQuery($query);
$array = $db->loadObjectList();
//var_dump($array->article_image);exit;
?>
<h3 class="title"><span><?php echo $this->escape($this->params->get('page_title')); ?></span></h3>

<div class="clearfix" style="margin:0 -8px 15px;">
		<?php 
		for($i=0;$i<count($array);$i++){?>
		<div class="fll w212 marlr7">
			<p><a href="images/rokquickcart/<?php echo $array[$i]->article_image ?>" class="lage-image"><img src="images/thumb/timthumb.php?src=images/rokquickcart/<?php echo $array[$i]->article_image ?>&w=206&h=103&zc=1" alt="" class="bor3" /></a></p>
			<p><a href="index.php?option=com_content&view=article&layout=galleri&id=<?php echo $array[$i]->id ?>&Itemid=5"><strong><?php echo $array[$i]->title ?></strong></a></p>
			<?php echo $array[$i]->introtext?>
		</div>
		<?php }?>
</div>